home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 714 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  843 b 

  1. Path: acsu.buffalo.edu!naras-r
  2. From: naras-r@acsu.buffalo.edu (Ram Prasad)
  3. Newsgroups: comp.lang.c
  4. Subject: CPU time measurement
  5. Date: 8 Jan 1996 22:31:47 GMT
  6. Organization: UB
  7. Message-ID: <4cs60j$ilb@azure.acsu.buffalo.edu>
  8. NNTP-Posting-Host: autarch.acsu.buffalo.edu
  9. NNTP-Posting-User: naras-r
  10.  
  11. Hi,
  12.  
  13. Is there a standard acceptable way of measuring the 
  14. number of (milli)seconds that different pieces of code take 
  15. to execute in a system?
  16.  
  17. I want to know the times taken by different subroutines
  18. in my code. (I am looking for something that will give
  19. the time to execute without interference from other
  20. processes and programs that may be running in the system)
  21.  
  22. I found "getrusage" in the man pages, but I am not sure if
  23. that's what I should use.
  24.  
  25. thanks,
  26.  
  27.  
  28. -- 
  29. Ram 
  30. -- 
  31. Ram Prasad                             naras-r@acsu.buffalo.edu        
  32.